<template>
  <el-config-provider :locale="appStore.locale" :size="appStore.size">
    <router-view />
  </el-config-provider>
</template>

<script setup lang="ts">
import useSettingsStore from '@/store/modules/settings';
import { handleThemeStyle } from '@/utils/theme';
import useAppStore from '@/store/modules/app';

const appStore = useAppStore();

onMounted(() => {
  nextTick(() => {
    // 初始化主题样式
    handleThemeStyle(useSettingsStore().theme);
  });
});
</script>
<style lang="scss" scoped>
*{
  font-family: Source Han Sans CN, Source Han Sans CN;
}
/*
  左侧菜单子菜单 隐藏图标
  未将菜单管理配置的图标删除，谨防需求修改需要重新配置
*/
:deep(.el-sub-menu){
  .nest-menu .svg-icon{
    display: none;
  }
}
</style>
